-- GENERATED SPELL FOR [High Chief Winterfall] --


function spell0_10738(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10738', 8254, 1)
end

function spell1_10738(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(15793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10738', 554, 1)
end

function Sorts_10738(pUnit, Event)
local choix_sorts_10738 = math.random(0, 1)
if choix_sorts_10738 == 0 then
pUnit:RegisterEvent('spell0_10738', 1, 1)
end
if choix_sorts_10738 == 1 then
pUnit:RegisterEvent('spell1_10738', 1, 1)
end
end

function mob10738_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10738', math.random(1500, 3000), 1)
end

function mob10738_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10738_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10738_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10738, 1, 'mob10738_Action')
RegisterUnitEvent(10738, 2, 'mob10738_Leave')
RegisterUnitEvent(10738, 3, 'mob10738_Kill')
RegisterUnitEvent(10738, 4, 'mob10738_Die')
